<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>内置指令v-text</title>
    <script src="../../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <!-- 
            
        -->

        <div>{{str}}</div>
        <div v-html="str"></div>
        
    </div>

    <script>
        Vue.config.productionTip = false;
        new Vue({
            el: '#root',
            data: {
                str:"<h3>Arlei</h3>"
            },
            methods: {
                
            }
        })
    </script>

</body>
</html>